package com.demo.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

@Component()
public class User {

    @Autowired
    private ApplicationContext applicationContext;

    public void init(){
        System.out.println("----user init------");
    }

    public void show() {
        System.out.println("User Show: " + applicationContext);
    }

}
